<?php
namespace Application\Api\Controller;

class MallCategory extends Base
{

    private function getService()
    {
        return $this->get(SERVICE_MALLCATEGORY);
    }

    /*
        /Api/MallCategory/getList
    */
    public function getListAction()
    {
        $list = $this->getService()->getList();
        $list = $this->get(SERVICE_FILE)->getFileData($list, ['dry_image' => 1]);
        $send = [
            'oss_domain' => getOssDomain(),
            'list' => $list
        ];
        $this->sendSuccess($send);
    }

}